package com.dnapipeline.modelManage.repository;

import com.dnapipeline.modelManage.entity.ProfileModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import java.util.List;

public interface ProfileRepository extends JpaRepository<ProfileModel, String> {
    List<ProfileModel> findByDeviceKey(String deviceKey);
    @Modifying
    void deleteByDeviceKey(String deviceKey);
    ProfileModel findByProfileModelKey(String profileModelKey);
}
